{extend name="main/index" /}
{block name="main"}
<!--角色列表页面-->
<div class="content-page">
    <div class="content">
        <form class="form-inline" action="{:url('admin/Con2/doedit',['id'=>$list_role['r_id']])}" method="post">
            <input type="hidden" name="_method" value="PUT" >
            <input type="hidden" name="r_id" value="{$list_role['r_id']}">
            <table class="table table-hover text-center">
                <tr>
                    <th><h2 class="text-center">{$list_role['r_rolename']}--权限修改</h2></th>
                </tr>

                <tr>
                    <td>
                        <div class="form-group">
                            <label for="exampleInputName2">角色编号 ： </label>
                            <input type="text" class="form-control" id="exampleInputName2" name="r_id" readonly value="{$list_role['r_id']}">
                        </div>
                    </td>
                </tr>
                <br>

                <tr>
                    <td>
                        <div class="form-group">
                            <label for="exampleInputName2">角色名称 ： </label>
                            <input type="text" class="form-control" id="exampleInputName2" name="r_rolename" readonly value="{$list_role['r_rolename']}">
                        </div>
                    </td>
                </tr>
                <br>

                <tr>
                    <td>
                        <div class="form-group">
                            <label for="exampleInputName2">权限增改 ： </label>

                            <!--已拥有的权限遍历-->
                            {volist name="oldNode" id="old"}
                            <input type="checkbox" id="inlineCheckbox1" value="{$old['n_id']}" name="node[{$old['n_nodename']}]" checked> {$old['n_nodename']}
                            {/volist}

                            <!--未拥有的权限遍历-->
                            {volist name="list_node" id="v"}
                             <input type="checkbox" id="inlineCheckbox1" value="{$v['n_id']}" name="node[{$v['n_nodename']}]"> {$v['n_nodename']}
                            {/volist}

                        </div>
                    </td>
                </tr>
                <br>

                <tr>
                    <td>
                        <button type="submit" class="btn btn-danger">确定修改</button>
                    </td>
                </tr>


            </table>
        </form>
    </div>
</div>
{/block}